﻿using System.Windows.Controls;
using Blake.NUI.WPF.Gestures;
using Microsoft.Surface.Presentation.Controls;
using MTBrainStorm.ViewModels;

namespace MTBrainStorm.Views
{
    /// <summary>
    /// Interaction logic for TouchInkCanvas.xaml
    /// </summary>
    public partial class TouchInkCanvas : UserControl
    {
        public TouchInkCanvas()
        {
            InitializeComponent();
        }

        private void TapGesture(object sender, GestureEventArgs e)
        {
            var inkCanvas = (SurfaceInkCanvas)e.Source;
            var dc = (TouchInkCanvasViewModel)inkCanvas.DataContext;
            dc.StartEditing.Execute(null);
        }
    }
}
